home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ezview / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-06  |  2.5 KB  |  94 lines

  1. /*
  2. Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  3.  
  4. Permission to use, copy, modify, and distribute this material 
  5. for any purpose and without fee is hereby granted, provided 
  6. that the above copyright notice and this permission notice 
  7. appear in all copies, and that the name of Bellcore not be 
  8. used in advertising or publicity pertaining to this 
  9. material without the specific, prior written permission 
  10. of an authorized representative of Bellcore.  BELLCORE 
  11. MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  12. OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  13. WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  14. */
  15. /* ********************************************************************** *\
  16.  *         Copyright IBM Corporation 1988,1989 - All Rights Reserved      *
  17.  *        For full copyright information see:'andrew/config/COPYRITE'     *
  18. \* ********************************************************************** */
  19. #ifndef    SYSTEM_H
  20. #define    SYSTEM_H
  21.  
  22. /* Get common definitions */
  23. #include <allsys.h>
  24.  
  25. #define    OPSYSNAME    "SUN4_4.3bsd"
  26. #define    sys_sun4_40    1
  27. #define    SYS_NAME    "sun4_40"
  28. #define    SUN_ENV
  29.  
  30. /* Here follow the overrides for this system. */
  31. #undef    SY_B43
  32. #define    SY_B43    1 /* This system is most like bsd 4.3 */
  33.  
  34. #ifndef In_Imake
  35.  
  36. /* Get major data types (esp. caddr_t) */
  37. #include <sys/types.h>
  38.  
  39. #include <strings.h>
  40.  
  41. /*  Get open(2) constants */
  42. #include <sys/file.h>
  43.  
  44. /*  Get struct timeval */
  45. #include <sys/time.h>
  46.  
  47. #ifndef AMIGA
  48. /* include path for syslog.h */
  49. #include <syslog.h>
  50. #endif
  51.  
  52. #ifndef VMUNIX
  53. #define    VMUNIX    1
  54. #endif /* VMUNIX */
  55.  
  56. #define OSI_HAS_SYMLINKS 1
  57.  
  58. #define osi_readlink(PATH,BUF,SIZE) readlink((PATH),(BUF),(SIZE))
  59.  
  60. #define osi_ExclusiveLockNoBlock(fid)    flock((fid), LOCK_EX | LOCK_NB)
  61. #define osi_UnLock(fid)            flock((fid), LOCK_UN)
  62. #define osi_O_READLOCK            O_RDONLY
  63. #define osi_F_READLOCK            "r"
  64.  
  65. #define    osi_vfork()            vfork()
  66.  
  67. #define    osi_setjmp  _setjmp
  68. #define    osi_longjmp _longjmp
  69.  
  70. /* Make a time standard. */
  71. struct osi_Times {unsigned long int Secs; unsigned long int USecs;};
  72. /* Set one of the above with a call to osi_GetTimes(&foo) */
  73. #define osi_GetSecs() time((long int *) 0)
  74. extern void osi_SetZone();
  75. extern char *osi_ZoneNames[];
  76. extern long int osi_SecondsWest;
  77. extern int osi_IsEverDaylight;
  78.  
  79. /*
  80.  * Put system-specific definitions here
  81.  */
  82.  
  83. #define HAS_SYSEXITS 1
  84.  
  85. #endif /* !In_Imake */
  86.  
  87. #define    NDBM_ENV    1
  88. #define    GETDOMAIN_ENV    1
  89.  
  90. /* Now follow the site-specific customizations. */
  91. #include <site.h>
  92.  
  93. #endif    /* SYSTEM_H */
  94.